aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntAddTests]/[method:canGenerateCodeForIntAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
diff options
context:
space:
mode:
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntAddTests]/[method:canGenerateCodeForIntAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntAddTests]/[method:canGenerateCodeForIntAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected37
1 files changed, 34 insertions, 3 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntAddTests]/[method:canGenerateCodeForIntAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntAddTests]/[method:canGenerateCodeForIntAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
index 405e751e..74c72b1b 100644
--- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntAddTests]/[method:canGenerateCodeForIntAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
+++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntAddTests]/[method:canGenerateCodeForIntAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
@@ -2,14 +2,45 @@ Compilation unit elements:
Locals:
- * (val "tmp__0" int)
+ * (val "binaryOpResult__0" int)
+ * (val "intPointer__0" data-ptr)
+ * (val "intBinaryOpLeftValue__0" int)
+ * (val "intPointer__1" data-ptr)
+ * (val "intBinaryOpLeftValue__1" int)
+ * (val "intBinaryOpResultValue__0" int)
+ * (val "intPointer__2" data-ptr)
Instructions:
(
- (int-add (local "tmp__0") (local "b") (local "c"))
+ (int-to-data-ptr (local "intPointer__0") (local "b"))
+ (
+ memory-load
+ (local "intBinaryOpLeftValue__0")
+ pointer=(local "intPointer__0")
+ layout=(struct (int))
+ offset=(0)
+ )
+ (int-to-data-ptr (local "intPointer__1") (local "c"))
+ (
+ memory-load
+ (local "intBinaryOpLeftValue__1")
+ pointer=(local "intPointer__1")
+ layout=(struct (int))
+ offset=(0)
+ )
+ (int-add (local "intBinaryOpResultValue__0") (local "intBinaryOpLeftValue__0") (local "intBinaryOpLeftValue__1"))
+ (alloc-heap (local "intPointer__2") (struct (int)))
+ (
+ memory-store
+ pointer=(local "intPointer__2")
+ layout=(struct (int))
+ offset=(0)
+ value=(local "intBinaryOpResultValue__0")
+ )
+ (data-ptr-to-int (local "binaryOpResult__0") (local "intPointer__2"))
)
Temporary stack:
- * PatioLocalRef[name=tmp__0]
+ * PatioLocalRef[name=binaryOpResult__0]
* PatioLocalRef[name=a]